//
//  FlipsideViewController.h
//  iPhoneRegister
//
//  Created by Devon Buchanan on 27/June/2009.
//  Copyright divinenephron 2009. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol FlipsideViewControllerDelegate;
@protocol FlipsideViewControllerDataSource;

@protocol NSObject;

enum {
    kNTLMUsernameTag = 1,
    kNTLMPasswordTag,
    kSMSUsernameTag,
    kSMSPasswordTag
} FieldTag;

@interface FlipsideViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate> {
	id <FlipsideViewControllerDelegate> delegate;
    id <FlipsideViewControllerDataSource> dataSource;
    IBOutlet UINavigationBar *tableHeader;
    IBOutlet UITableView *preferenceTable;
    IBOutlet UITableViewCell *usernameCell;
    IBOutlet UITableViewCell *passwordCell;
    CGRect keyboardBounds;
}

@property (nonatomic, assign) id <FlipsideViewControllerDelegate> delegate;
@property (nonatomic, assign) id <FlipsideViewControllerDataSource> dataSource;
@property (nonatomic, assign) UINavigationBar *tableHeader;

- (IBAction)done;

- (UITableViewCell *)tableCellWithTag:(NSInteger)tag;
- (UITextField *)textFieldForCellWithTag:(NSInteger)tag;
- (NSString *)textForTextFieldWithTag:(NSInteger)tag;
@end


@protocol FlipsideViewControllerDelegate
- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller;
@end

@protocol FlipsideViewControllerDataSource
@property (nonatomic, readwrite, assign) NSString *NTLMUsername;
@property (nonatomic, readwrite, assign) NSString *NTLMPassword;
@property (nonatomic, readwrite, assign) NSString *SMSUsername;
@property (nonatomic, readwrite, assign) NSString *SMSPassword;
@end


